$(function() {
	layer.config({
	    extend: ['skin/fpxskin/style.css']  //加载弹出层皮肤
	});
	
	//普通
	$(".primaryBtn").on("click", function() {
		layer.msg('普通弹出层', {
	   		icon: 1,   //1-info;2-success;3-warning;4-error
	   		skin: "skinprimarycss"
	   	});
	});
	
	//成功
	$(".successBtn").on("click", function() {
		layer.msg('操作成功弹出层', {
	   		icon: 2,   //1-info;2-success;3-warning;4-error
	   		skin: "skinsuccesscss"
	   	});
	});
	
	//警告
	$(".warningBtn").on("click", function() {
		layer.msg('警告弹出层', {
	   		icon: 3,   //1-info;2-success;3-warning;4-erro
	   		skin: "skinwarningcss"
	   	});
	});
	
	//危险
	$(".dangerBtn").on("click", function() {
		layer.msg('危险弹出层', {
	   		icon: 4,   //1-info;2-success;3-warning;4-erro
	   		skin: "skindangercss"
	   	});
	});
});
